package com.ch.web.vo;

import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
public class EmailCacheVo {
    private final static Integer expireTime = 70000;
    private Integer code;
    private Date expire;

    public EmailCacheVo( Integer code, Date expire) {
        this.code = code;
        this.expire = new Date(expire.getTime() + expireTime);
    }



    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Date getExpire() {
        return expire;
    }

    public void setExpire(Date expire) {
        this.expire = new Date(expire.getTime() + expireTime);
    }
}
